import os
def a():
    runningPath = os.path.split(os.path.realpath(__file__))[0]
    print (runningPath)     
    p = runningPath+'/binary'
    if not os.path.exists(p):
        return
    tt = os.getcwd()
    os.chdir(p)
    os.system('git pull>b.txt')
    f = open('b.txt')
    s = f.read()
    f.close()
    if 'Already' not in s:        
        os.system('cp file.txt ../.')
    os.chdir(tt)
if __name__ == '__main__':
    a()